package net.stratusprogramming.school.Game.Framework.Scene.Misc;

import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import net.stratusprogramming.school.Game.Framework.Scene.Actor;
import net.stratusprogramming.school.Game.Framework.System.SaveMgr;

/**
 * An actor that just displays and image
 * 
 * @author Lienau
 * @since 5/9/12
 * @version 0.1
 */
public class ImageActor extends Actor {

	/** Image to draw with */
	private Image image;
	
	/**
	 * Creates a new ImageActor
	 * 
	 * @param file filepath of image to load
	 */
	public ImageActor(String file) {
		// TODO: Create imageMgr, load from here
	}
	
	/**
	 * Creates a new ImageActor
	 * 
	 * @param image image to draw with
	 */
	public ImageActor(Image image) {
		this.image = image;
		initBoundingBox();
		setHeight(image.getHeight());
		setWidth(image.getWidth());
	}
		
	@Override
	public void update(int delta) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void render(Graphics g) {
		image.draw(x, y);
	}

	@Override
	public void save(SaveMgr saveMgr) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void load(SaveMgr saveMgr) {
		// TODO Auto-generated method stub
		
	}

}
